#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "riskComm.h"


int
main(int argc, char *argv[])
{
    busi_rules_st sBusiRules; 
    int nRet;
    redisContext  *con=NULL ;
    con =  dBConnect();
    if(NULL == con) printf("database connect failed.\n");
    nRet = get_busi_rules(con,&sBusiRules);
    if(nRet != 0) printf("get busi failed.\n");
    printf("Gtime:%d\nPtime:%d\nDamt:%d\nCamt:%d\n",
            sBusiRules.nGapTime,sBusiRules.nProcessTime,sBusiRules.nDeductAmt,sBusiRules.nChargeAmt);
 
  return 0;
}

